-- GENERATED SPELL FOR [Keristrasza] --


function spell0_26206(pUnit, Event) --@Teleport,Self--
pUnit:FullCastSpellOnTarget(46772,pUnit)
pUnit:RegisterEvent('Sorts_26206', 3000, 1)
end

function spell1_26206(pUnit, Event) --@Teleport,Self--
pUnit:FullCastSpellOnTarget(46824,pUnit)
pUnit:RegisterEvent('Sorts_26206', 3000, 1)
end

function Sorts_26206(pUnit, Event)
local choix_sorts_26206 = math.random(0, 1)
if choix_sorts_26206 == 0 then
pUnit:RegisterEvent('spell0_26206', 1, 1)
end
if choix_sorts_26206 == 1 then
pUnit:RegisterEvent('spell1_26206', 1, 1)
end
end

function mob26206_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26206', math.random(1500, 3000), 1)
end

function mob26206_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26206_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26206_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26206, 1, 'mob26206_Action')
RegisterUnitEvent(26206, 2, 'mob26206_Leave')
RegisterUnitEvent(26206, 3, 'mob26206_Kill')
RegisterUnitEvent(26206, 4, 'mob26206_Die')
